import dm18nMixin from "./dm18n.mixin"
import {userStore} from "@/store"
import Cookie from "dmui-cookie"
import Storage from "dmui-storage"

export default {
    data(){
        return{
            userStore
        }
    },
    mixins: [dm18nMixin],
    methods: {

        $cookie_get: key => Cookie.get(key),
        $cookie_set: (key, value, delay) => Cookie.set(key, value, delay),
        $cookie_del: key => Cookie.del(key),

        $storage_get: (key, session) => Storage.get(key, session),
        $storage_set: (key, value, session) => Storage.set(key, value, session),
        $storage_del: (key, session) => Storage.del(key, session)

    }
}